/**
 * 通过传入经纬度获取详细地址
 * 逆解析
 */
export const resolveAddress = (location) => {
	return new Promise((resolve, reject) => {
		var url = "https://apis.map.qq.com/ws/geocoder/v1/?location=" + location.latitude + "," + location.longitude + "&key=UJVBZ-OUUCZ-WKQXP-7XC2N-LUCQH-SZFRN";
		wx.request({
		  url,
		  success: function (result) {
			resolve(result.data.result)
		  },
		  fail: function (error) {
			reject('获取失败')
		  }
		})

	})
}